/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */

package org.jaxson.struts.logging;


import java.io.Serializable;

import flexjson.JSON;

/**
 * A single javascript log event.  Javascript log events
 * are posted back to the server via ajax and are useful
 * in debugging client sessions or monitoring real time
 * user activities.
 * 
 * @author Joe Maisel
 */
public class JavascriptLogEntry implements Serializable
{
	private Long occuredOn;
	private String logger;
	private int level;
	private String message;

	/**
	 * @return the occuredOn
	 */
	@JSON
	public Long getOccuredOn()
	{
		return occuredOn;
	}

	/**
	 * @param occuredOn
	 *            the occuredOn to set
	 */
	public void setOccuredOn( Long Long )
	{
		this.occuredOn = Long;
	}

	/**
	 * @return the logger
	 */
	@JSON
	public String getLogger()
	{
		return logger;
	}

	/**
	 * @param logger
	 *            the logger to set
	 */
	public void setLogger( String logger )
	{
		this.logger = logger;
	}

	/**
	 * @return the level
	 */
	@JSON
	public int getLevel()
	{
		return level;
	}

	/**
	 * @param level
	 *            the level to set
	 */
	public void setLevel( int level )
	{
		this.level = level;
	}

	/**
	 * @return the message
	 */
	@JSON
	public String getMessage()
	{
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage( String message )
	{
		this.message = message;
	}

	private static final long serialVersionUID = 144674567984566234L;
}
